package org.richin.servlet.Response.util;
import javax.servlet.http.*;
import java.io.*;


public class CharResponseWrapper extends HttpServletResponseWrapper {
    private CharArrayWriter output;

    public CharResponseWrapper(HttpServletResponse response) {
        super(response);
        output = new CharArrayWriter();
    }
    @Override
    public String toString() {
        return output.toString();
    }
    @Override
    public PrintWriter getWriter() {
        return new PrintWriter(output);
    }

}
